// #region    获取音频时间戳
const box1 = document.querySelector(".box1");
const box2 = document.querySelector(".box2");
const audio = document.querySelector("audio");
const form = document.querySelector("form.timestamp");
// 按钮点击事件
form.addEventListener("submit", function (e) {
  e.preventDefault();
  const o = e.target;
  if (audio.played.length === 0) {
    alert("请先播放音频……");
    return;
  }
  console.log(audio.played);
  // box.innerHTML = audio.played;
  box1.innerHTML = audio.played.start(0).toFixed(2);
  box2.innerHTML = audio.played.end(0).toFixed(2);
});
let b = 2;
b = 4;
alert(b);
let e = 5;
console.log(e);
let f = 6;
const c = 6;
console.log(c);
// #endregion 获取音频时间戳
